package com.tdkj.model.shop;

import java.math.BigDecimal;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;

/**
 * ShopRecommendations entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "shop_shop_recommendation_custom")
public class BeanShopRecommendationCustom extends BaseEntity {

	private BigDecimal timeLimitQuantity;
	private String timeLimitUnit;
	private BigDecimal price;
	private Long scoreLower;
	private String unit;
	private Integer goodNumber;
	
	private BeanShopRecommendationType type;
	
	/**
	 * @return the timeLimitQuantity
	 */
	public BigDecimal getTimeLimitQuantity() {
		return timeLimitQuantity;
	}
	/**
	 * @param timeLimitQuantity the timeLimitQuantity to set
	 */
	public void setTimeLimitQuantity(BigDecimal timeLimitQuantity) {
		this.timeLimitQuantity = timeLimitQuantity;
	}
	/**
	 * @return the timeLimitUnit
	 */
	public String getTimeLimitUnit() {
		return timeLimitUnit;
	}
	/**
	 * @param timeLimitUnit the timeLimitUnit to set
	 */
	public void setTimeLimitUnit(String timeLimitUnit) {
		this.timeLimitUnit = timeLimitUnit;
	}
	/**
	 * @return the price
	 */
	public BigDecimal getPrice() {
		return price;
	}
	/**
	 * @param price the price to set
	 */
	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	/**
	 * @return the scoreLower
	 */
	public Long getScoreLower() {
		return scoreLower;
	}
	/**
	 * @param scoreLower the scoreLower to set
	 */
	public void setScoreLower(Long scoreLower) {
		this.scoreLower = scoreLower;
	}
	/**
	 * @return the unit
	 */
	public String getUnit() {
		return unit;
	}
	/**
	 * @param unit the unit to set
	 */
	public void setUnit(String unit) {
		this.unit = unit;
	}
	/**
	 * @return the goodNumber
	 */
	public Integer getGoodNumber() {
		return goodNumber;
	}
	/**
	 * @param goodNumber the goodNumber to set
	 */
	public void setGoodNumber(Integer goodNumber) {
		this.goodNumber = goodNumber;
	}
	/**
	 * @return the type
	 */
	@ManyToOne(fetch=FetchType.EAGER, cascade={CascadeType.REFRESH})
	@JoinColumn(name="type_id")
	public BeanShopRecommendationType getType() {
		return type;
	}
	/**
	 * @param type the type to set
	 */
	public void setType(BeanShopRecommendationType type) {
		this.type = type;
	}

	
}